package drds.global_transaction.api.exception;

public class GlobalTransactionException extends Exception
{

	protected TransactionExceptionCode transactionExceptionCode = TransactionExceptionCode.unknown;

	public GlobalTransactionException(String message)
	{
		super(message);
	}

	public GlobalTransactionException(String message, Throwable cause)
	{
		super(message, cause);
	}

	public GlobalTransactionException(Throwable cause)
	{
		super(cause);
	}

	public GlobalTransactionException(TransactionExceptionCode transactionExceptionCode)
	{
		this.transactionExceptionCode = transactionExceptionCode;
	}

	public GlobalTransactionException(TransactionExceptionCode transactionExceptionCode, String message)
	{
		super(message);
		this.transactionExceptionCode = transactionExceptionCode;
	}

	public GlobalTransactionException(TransactionExceptionCode transactionExceptionCode, String message, Throwable cause)
	{
		super(message, cause);
		this.transactionExceptionCode = transactionExceptionCode;
	}

	public GlobalTransactionException(TransactionExceptionCode transactionExceptionCode, Throwable cause)
	{
		super(cause);
		this.transactionExceptionCode = transactionExceptionCode;
	}

	public TransactionExceptionCode getTransactionExceptionCode()
	{
		return transactionExceptionCode;
	}
}
